#ifndef __FILE__DATA__PROVIDER__H__
#define __FILE__DATA__PROVIDER__H__

#include <string>
#include "FrameProvider.h"
#include "YUVReader.h"

namespace simple_renderer{

class FileDataProvider : public FrameProvider{
public:
    FileDataProvider();
    virtual ~FileDataProvider();

    int InitProvider(const char* file_name);
    int ProvideNextFrame();
    int DeinitProvider();

protected:
    int _count;
    std::unique_ptr<YUVReader> _yuv_reader;
};

}
#endif